/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_express.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_EXPRESS
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_express.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_EXPRESS::CTable_PPM_EXPRESS( )
 :NPCRecordSet( )
{
  setTableName( "PPM_EXPRESS" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  PRICING_DETAIL_ID.setField( "PRICING_DETAIL_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_DETAIL_ID );
  EXPRESS_ID.setField( "EXPRESS_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( EXPRESS_ID );
  EXPRESS_TYPE.setField( "EXPRESS_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( EXPRESS_TYPE );
  START_REF_VALUE_ID.setField( "START_REF_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( START_REF_VALUE_ID );
  END_REF_VALUE_ID.setField( "END_REF_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( END_REF_VALUE_ID );
}


CTable_PPM_EXPRESS::CTable_PPM_EXPRESS( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_EXPRESS" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  PRICING_DETAIL_ID.setField( "PRICING_DETAIL_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_DETAIL_ID );
  EXPRESS_ID.setField( "EXPRESS_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( EXPRESS_ID );
  EXPRESS_TYPE.setField( "EXPRESS_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( EXPRESS_TYPE );
  START_REF_VALUE_ID.setField( "START_REF_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( START_REF_VALUE_ID );
  END_REF_VALUE_ID.setField( "END_REF_VALUE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( END_REF_VALUE_ID );
}

CTable_PPM_EXPRESS::~CTable_PPM_EXPRESS( )
{
    close();
}

